var mongoose = require('mongoose');

mongoose.connect('mongodb://127.0.0.1/5kcake',function (err) {
    if(err){
        throw err;
    }
    console.log('连接数据库成功')
});

module.exports = mongoose;